<?php
namespace ImiDemo\WebSocketDemo\Http\Controller;

use Imi\Controller\HttpController;
use Imi\Server\View\Annotation\View;
use Imi\Server\Route\Annotation\Route;
use Imi\Server\Route\Annotation\Action;
use Imi\Server\Route\Annotation\Controller;

/**
 * @Controller
 */
class Index extends HttpController
{
    /**
     * 访问：http://127.0.0.1:8084/
     *
     * @Action
     * @Route("/")
     * @View("/index")
     * @return void
     */
    public function index()
    {
        return [
            'wsUri'    =>    'ws://127.0.0.1:8083',
        ];
    }
}